﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Expect.Core.Test
{
    using Expect.Core.BaseClasses;

    [TestClass]
    public class FixtureStatusTests
    {
        [TestMethod]
        public void FixtureStatus_Unresolved_Fluent_fixture_must_have_null_result()
        {
            var spec = new SpecificationDefinition();
            spec.AddFixture(
                fixture => fixture
                            .WithRow("Mon panier doit contenir")
                            .WithRow("Code url", "Nom", "Quantité", "Prix")
                            .WithRow("test-url", "Un produit de test", "2", "12,5 EUR")
                    );
            spec.Context = new DefaultExecutionContext() { Container = this };
            spec.Run();
            Assert.IsNull(spec.Status.Success);
            Assert.IsNull(spec.Fixtures[0].Status.Success);
            //Assert.Fail(spec.GetMessageForInconclusiveResult());
        }
    }
}
